<?php
	$list = $_->cmt->_select('',array('uid'=>$inf['id'],'DESC'=>'addtime'));
	if($list):
	foreach($list as $key=>$val)
	{
		if($key < 1 || (substr($val['addtime'],0,4) > substr($list[$key+1]['addtime'],0,4) && $list[$key+1]['addtime']))
		{
			$data[] = substr($val['addtime'],0,4);
		}
		if(substr($val['addtime'],0,10) != substr($list[$key-1]['addtime'],0,10))
		{
			$val['date'] = substr($val['addtime'],5,5);
		}
		$val['addtime'] = substr($val['addtime'],10);
		$data[] = $val;
	}
	endif;
	$smarty->_assign(array('data'));
?>